package cn.kgc.ssm.service;

import cn.kgc.ssm.entity.User;
import cn.kgc.ssm.utils.ResponseResult;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author 课工场
 * @date 2024/3/1
 * @description
 */
public interface UserService {

    ResponseResult login(String username, String password, HttpSession session);

    ResponseResult selectPage(Integer page, Integer limit, String username);

    ResponseResult deleteUsers(List<Integer> collectIds);

    ResponseResult addUser(User user);

    ResponseResult selectUserById(Integer id);

    ResponseResult editUser(User user);

    ResponseResult editPersonalInfo(User user);

    ResponseResult editPersonalPassword(String oldPassword, String password, HttpSession session);
}
